<div class="col-md-5 column">
    <fieldset>
        <legend>Labot filmas informāciju</legend>
        <?php echo Form::open(array("enctype" => "multipart/form-data", "id" => "editMovieForm")); ?>
            <div class="form-group">
                    <label for="Title_Lv">Filmas nosaukums latviski</label><?php echo Form::input('Title_Lv', $movie_info->title_lv, array("class"=>"form-control") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Title_En">Filmas nosaukums angliski</label><?php echo Form::input('Title_En', $movie_info->title_en, array("class"=>"form-control") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Title_Original">Filmas nosaukums oriģinālvalodā</label><?php echo Form::input('Title_Original', $movie_info->title_original, array("class"=>"form-control") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Year">Izdošanas gads</label><?php echo Form::input('Year', $movie_info->year, array("class"=>"form-control") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Duration">Filmas garums (min)</label><?php echo Form::input('Duration', $movie_info->duration, array("class"=>"form-control") ); ?>                        
            </div>
            <div id="genre-selection" class="form-group">
                <label>Žanri</label>
                <?php
                    echo Form::select('Genre_1', '', $genres, array("class"=>"form-control"));
                ?>
                <button id="add-genre" type="button" class="btn btn-default btn-sm">
                    <span class="glyphicon glyphicon-plus"></span> Pievienot jaunu lauku
                </button>
                <button id="remove-last-genre" type="button" class="btn btn-default btn-sm" disabled="disabled">
                    <span class="glyphicon glyphicon-minus"></span> Dzēst pēdējo lauku
                </button>
            </div>     
            <div class="form-group">
                    <label for="Age_Restriction">Vecuma ierobežojums</label><?php echo Form::input('Age_Restriction', $movie_info->age_restriction, array("class"=>"form-control") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Trailer_Link">Trailera saite</label><?php echo Form::input('Trailer_Link', 'https://www.youtube.com/watch?v=' . $movie_info->video_id, array("class"=>"form-control") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Description_Lv">Filmas apraksts latviski</label><?php echo Form::textarea('Description_Lv', $movie_info->description_lv, array("class"=>"form-control", "rows"=>"7") ); ?>                        
            </div>
            <div class="form-group">
                    <label for="Description_En">Filmas apraksts angliski</label><?php echo Form::textarea('Description_En', $movie_info->description_en, array("class"=>"form-control", "rows"=>"7") ); ?>                        
            </div>    
            <div class="form-group">
                    <label for="Poster">Filmas plakāts</label><?php echo Form::file('Poster', array("class"=>"form-control") ); ?>                        
            </div>

            <?php echo Form::submit('SubmitButton', 'Labot filmu', array("class"=>"btn btn-default") ); ?> 
        <?php echo Form::close(); ?>
    </fieldset>
</div>